
<!-- views\test\Test.vue -->
<template>
  <div>
    <button @click="handleSubmit">提交</button>
  </div>
</template>

<script>
export default {
  data () {
    return {
      
    }
  },
  methods: {
    dateToStringTime(date,bol){
				 var d=date;
				 var year=d.getFullYear();
				 var month=d.getMonth()+1;
				 var ri=d.getDate();	
				 var hours=d.getHours();	
				 var minutes=d.getMinutes();
				 var seconds=d.getSeconds();
				 if(!bol){
					 if(month<10){
						 month="0"+month;
					 }
					 if(ri<10){
						 ri="0"+ri;
					 }
					 if(hours<10){
						 hours="0"+hours;
					 }
					 if(minutes<10){
						 minutes="0"+minutes;
					 }
					 if(seconds<10){
						 seconds="0"+seconds;
					 }
				 }				
				 return year+"-"+month+"-"+ri+" "+hours+":"+minutes+":"+seconds;
			},
    handleSubmit () {      
      //let urll=process.env.VUE_APP_API_BASE_URL+"/custom/online/api/getCgformHendID/hhh";
      //let urll=process.env.VUE_APP_API_BASE_URL+"/custom/online/cgform/api/getData/1baad6361c0b4db8983abdc8513e0a4b?_t=1652096181&column=id&order=desc&pageNo=1&pageSize=10&superQueryMatchType=and";
      /* hp.axiosGet(urll, null).then((res)=>{  //axiosGet  axios
        if(!res){
            return false;
        }
        if(res.success){
          let records=res.result.records;
          console.log(records);
        }
      }) 
      let params = {
				prefix:'lg'
			}*/
      /* let urll="/act/task/getNodePositionInfo?processInstanceId=937599";
			getAction(urll,null).then(res=>{   //postAction(post请求)   getAction(get请求)
				console.log(res);
			}) */
      /* let urll="/act/process/extActFlowData/processInfoByDataId?dataId=1527575594416799745";
			getAction(urll,null).then(res=>{   //postAction(post请求)   getAction(get请求)
				if(res.success){  //res是完整的返回值
          let idd=res.result.processInstanceId;
          console.log(idd);
          urll="/act/task/getNodePositionInfo?processInstanceId="+idd;
          	getAction(urll,null).then(res=>{   //postAction(post请求)   getAction(get请求)
              if(res.success){ 
                let hisTasks=res.result.hisTasks;
                let n=hisTasks[hisTasks.length-1];
                //节点操作人,例admin
                let assignId=n.taskAssigneeId;
                var username = store.getters.userInfo.username;
                console.log(username);
                console.log(assignId);
              }
            })
        }
			}) */
    }
  }
}
</script>